package cn.kgm.list;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author: Kappi
 * @Date: 2023-3-28 14:11
 * @ClassName: ListDemo
 * @Description: cn.kgm.list ListDemo
 * @Version 1.8
 */
public class ListDemo {
    public static void main(String[] args) {
        List<String> list = new ArrayList<>();
        list.add("aa");
        list.add("bb");
        list.add("cc");
        list.add("dd");


        System.out.println(list.subList(0, 0));
        System.out.println(list.subList(2, list.size()));
        System.out.println(list.subList(0, list.size() - 1));

    }
}
